Tests: python3-gi
Depends: dbus, gir1.2-gtk-4.0, python3-gi, xauth, xvfb
-# https://gitlab.gnome.org/GNOME/pygobject/merge_requests/81/diffs
+# https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/81, !145, etc.
Restrictions: flaky, superficial
Tests: installed-tests
Depends: at-spi2-core, dbus (>= 1.8), gnome-desktop-testing (>= 2018.1-1~), gtk-4-examples, locales | locales-all, librsvg2-common, xauth, xvfb
Restrictions: allow-stderr, flaky
+
+Tests: installed-tests-flaky
+Depends: at-spi2-core, dbus (>= 1.8), gnome-desktop-testing (>= 2018.1-1~), gtk-4-examples, locales | locales-all, librsvg2-common, xauth, xvfb
+Restrictions: allow-stderr, flaky
export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
+tests=$(gnome-desktop-testing-runner -l gtk-4.0 |
+ cut -f1 -d' ' |
+ grep -v '^gtk-4.0/a11y/tree.test$' |
+ grep -v '^gtk-4.0/a11y/tree.test$' |
+ grep -v '^gtk-4.0/gtk/displayclose.test$' |
+ grep -v '^gtk-4.0/gtk/icontheme.test$')
+
exec dbus-run-session -- \
xvfb-run -a -s "-screen 0 1024x768x24" \
debian/run-with-locales \
gnome-desktop-testing-runner \
--report-directory="$AUTOPKGTEST_ARTIFACTS" \
--tap \
-gtk-4.0
+$tests
--- /dev/null
+#!/bin/sh
+# autopkgtest check: Run the installed-tests to verify GTK works correctly
+# Based on glib2.0's d/tests/installed-tests, (C) 2013 Canonical Ltd.
+
+set -e
+
+# Disable gvfs if it happens to be installed. We want to test the built-in
+# stuff
+export GIO_USE_VFS=local
+export GIO_USE_VOLUME_MONITOR=unix
+
+export XDG_RUNTIME_DIR="$AUTOPKGTEST_TMP"
+
+exec dbus-run-session -- \
+xvfb-run -a -s "-screen 0 1024x768x24" \
+debian/run-with-locales \
+ --generate de_DE.UTF-8 \
+ --generate en_GB.UTF-8 \
+ --generate en_US.UTF-8 \
+ --generate sv_SE \
+ -- \
+xvfb-run -a -s "-screen 0 1024x768x24" \
+gnome-desktop-testing-runner \
+--report-directory="$AUTOPKGTEST_ARTIFACTS" \
+--tap \
+gtk-4.0/a11y/tree.test \
+gtk-4.0/a11y/tests.test \
+gtk-4.0/gtk/displayclose.test \
+gtk-4.0/gtk/icontheme.test